<include file="App/Home/View/Public/header.html"/>
	<!--左侧导航 end-->	
	<script src='__PUBLIC__/Home/js/jquery-1.7.2.min.js' type='text/javascript'></script>
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">			
		<div class="row">
			<ol class="breadcrumb">
				<li class="active position_tit">信件详情</li>
				<li><a href="{:U('Mail/seeInbox')}"></a></li>
			</ol>
		</div><!--/.row-->
		
		<div class="row">
			<div class="col-lg-12">
				<div class="panel panel-default">
					<!--<div class="panel-heading">会员注册</div>-->
					<div class="panel-body">
						<table class="table2 table_infor table_bor_bottom">
                            <tbody>
                             <tr>
                             <td class="right1 td1_wid"><eq name="list.ren" value="1"><span>发信人：</span><else/><span>收信人：</span></eq></td>
                             <!-- <eq name="list.status" value="1"><span>发信人：</span><else/><span>收信人：</span></eq>-->
                                <!-- <td class="right1 td1_wid">发信会员：</td> -->
                                <td class="td2_wid">
                                	<!-- disabled="disabled" -->
                                	<input class="form-control" Placeholder="" name="username" value="{$list.username}" id="username" disabled="disabled">
                               	</td>
                                <td class="td3_wid">
                                	<!-- <input style=" margin:16px 0px 16px 10px;" type="radio"name="sex" value="male">
                                		<span style="float:left; padding:0px 5px;">男</span>
                                    <input style=" margin:16px 0px;" type="radio"  name="sex" value="famale">
                                    	<span style=" float:left; padding:0px 5px;">女</span> -->
                                </td>
                            </tr>
                            <tr>
                                <td class="right1 td1_wid">信件标题：</td>
                                <td class="td2_wid">
                                	<!-- disabled="disabled" -->
                                	<input class="form-control" Placeholder="" name="title" value="{$list.title}" id="title" disabled="disabled">
                                </td>
                            </tr>
                            <tr>
                                <td class="right1 td1_wid">内容：</td>
                                <td colspan="2">
                                	<!-- disabled="disabled" -->
                                	<textarea rows="4" cols="100" style=" width:330px; border-radius:4px; border:1px solid #eee;" id="content" disabled="disabled">{$list.content}</textarea>
                               	</td>
                              </tr>
                            </tbody>
						</table>
                        
					</div>
                    <div class="panel-footer">
						<div class="input-group article_btn">
							<span class="input-group-btn">
								<!-- 这个地方需要切换调用的方法 -->
								<!-- 也需要替换按钮的文字 -->
								<a href="{:U('Mail/index')}"><button class="btn btn-success btn-md btn_art_return">返回</button></a>
								<!-- <button class="btn btn-success btn-md btn_art_return" onclick="sub()">提交</button></a> -->

							</span>
						</div>
                        
					</div>
				</div>
			</div>
		</div><!--/.row-->		
	</div><!--/.main-->	
	<script type="text/javascript">
	function sub(ob){
		var username = $('#username').val();
		var title = $('#title').val();
		var content = $('#content').val();		
		// alert(name);
		var url = "{:U('Mail/insert')}";
		$.post(url,{'username':username,'title':title,'content':content},function(data){
			alert(data['info']);
			// alert('$data');
			// window.location.reload();
		});



	}
	</script>	
</html>
